package com.circle.interests.biz.api;

import cn.hutool.json.JSONUtil;
import com.circle.pay.api.dto.RedPacketResultDto;
import com.circle.pay.api.service.DubboRedPacketCallbackService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author zhou
 * @date 2022/5/23
 */
@Slf4j
@DubboService(group = "${circle.service.groupId}")
public class DubboRedPacketCallbackServiceImpl implements DubboRedPacketCallbackService {

    @Override
    public String callback(RedPacketResultDto redPacketResultDto) {
        log.info("红包发送回调{}", JSONUtil.toJsonStr(redPacketResultDto));
        return "SUCCESS";
    }
}
